package com.yxm.test.controller;

import com.yxm.test.config.CommonConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    private CommonConfig config;

    @GetMapping("/test")
    public  String test(){
        return config.getUsername() + "-----" + config.getTimeout()+"-----"+config.getPort();
    }
}
